2007-02-14 Kristian Rietveld <kris@imendio.com>
* gtk/gtktooltip.c (child_location_foreach): check return value
of gtk_widget_translate_coordinates() so we cannot end up
using uninitialized x, y values. (#407863, patch from Carlos
Garnacho).
svn path=/trunk/; revision=17293
+2007-02-14 Kristian Rietveld <kris@imendio.com>
+
+ * gtk/gtktooltip.c (child_location_foreach): check return value
+ of gtk_widget_translate_coordinates() so we cannot end up
+ using uninitialized x, y values. (#407863, patch from Carlos
+ Garnacho).
+
2007-02-14 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
child_location_foreach (GtkWidget *child,
gpointer data)
{
+ gint x, y;
struct ChildLocation *child_loc = data;
- if (!child_loc->child)
- {
- gint x, y;
-
+ if (!child_loc->child &&
gtk_widget_translate_coordinates (child_loc->container, child,
child_loc->x, child_loc->y,
- &x, &y);
-
+ &x, &y))
+ {
if (x >= 0 && x < child->allocation.width
&& y >= 0 && y < child->allocation.height)
{